package com.kyivmohyla.kma2.dao;

import com.kyivmohyla.kma2.model.Service;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface ServiceDao extends Dao<Service> {
    public List<Service> getServiceByOrderId(int id) throws DataAccessException;

    public void deleteList(List<Service> objs) throws DataAccessException;

    public boolean canBeChildDeleted(Service service) throws DataAccessException;

    public boolean canBeParentDeleted(Service service) throws DataAccessException;
}
